package com.doordu.web;

import com.doordu.api.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zxw
 * @date 2020/8/7 11:47
 */
@RequestMapping("/provider")
@RestController
public class ProviderController {
    @Autowired
    private UserService userService;

    @GetMapping("/{id}")
    public void getPathValue(@PathVariable("id") Integer id) {
        userService.getUserInfo(id);
    }
}
